package com.blackink.service.impl;

import com.blackink.mapper.RoleMapper;
import com.blackink.pojo.Dept;
import com.blackink.pojo.Role;
import com.blackink.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<String> queryRoleKeyByUserId(Integer UserId) {
        return roleMapper.queryRoleKeyByUserId(UserId);
    }

    @Override
    public List<Role> queryRoleList() {
        return roleMapper.queryRoleList();
    }

    @Override
    public List<Role> selectRoleList(String roleName, String roleKey, String startTime,String endTime) {
        return roleMapper.selectRoleList(roleName,roleKey,startTime,endTime);
    }

}
